Except(TSource) Method (ParallelQuery(TSource), ParallelQuery(TSource), IEqualityComparer(TSource))

Task Parallel System.Threading

Produces the set difference of two parallel sequences by using the specified IEqualityComparer{T} to compare values.

Namespace:  System.Linq
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Except(Of TSource) ( _
	first As ParallelQuery(Of TSource), _
	second As ParallelQuery(Of TSource), _
	comparer As IEqualityComparer(Of TSource) _
) As ParallelQuery(Of TSource)
C#
public static ParallelQuery<TSource> Except<TSource>(
	ParallelQuery<TSource> first,
	ParallelQuery<TSource> second,
	IEqualityComparer<TSource> comparer
)

Parameters

first
Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
A sequence whose elements that are not also in second will be returned.
second
Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
A sequence whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.
comparer
Type: System.Collections.Generic..::.IEqualityComparer<(Of <(TSource>)>)
An IEqualityComparer<(Of <(T>)>) to compare values.

Type Parameters

TSource
The type of the elements of the input sequences.

Return Value

A sequence that contains the set difference of the elements of two sequences.

Exceptions

ExceptionCondition
System..::.ArgumentNullException first or second is a null reference (Nothing in Visual Basic).

See Also